1: | times(x,plus(y,s(z))) | → plus(times(x,plus(y,times(s(z),0))),times(x,s(z))) | |
2: | times(x,0) | → 0 | |
3: | times(x,s(y)) | → plus(times(x,y),x) | |
4: | plus(x,0) | → x | |
5: | plus(x,s(y)) | → s(plus(x,y)) | |
6: | TIMES(x,plus(y,s(z))) | → PLUS(times(x,plus(y,times(s(z),0))),times(x,s(z))) | |
7: | TIMES(x,plus(y,s(z))) | → TIMES(x,plus(y,times(s(z),0))) | |
8: | TIMES(x,plus(y,s(z))) | → PLUS(y,times(s(z),0)) | |
9: | TIMES(x,plus(y,s(z))) | → TIMES(s(z),0) | |
10: | TIMES(x,plus(y,s(z))) | → TIMES(x,s(z)) | |
11: | TIMES(x,s(y)) | → PLUS(times(x,y),x) | |
12: | TIMES(x,s(y)) | → TIMES(x,y) | |
13: | PLUS(x,s(y)) | → PLUS(x,y) | |